C# |
---|
public String GetIndented(String text) |
C# |
---|
// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false. var xb = new XMLBuilder(); // Example Method: var result = xb.GetIndented("This text is NOT indented."); // The builder keeps track of the current number of indents. xb.AddIndent(2); result += xb.GetLine(); result += xb.GetIndented("This text is indented."); // result: // This text is NOT indented. // This text is indented. |